package com.thinkit.bigdata.web.service.config;

import com.thinkit.bigdata.core.feature.orm.mybatis.Page;
import com.thinkit.bigdata.web.model.config.SysResource;
import com.thinkit.bigdata.web.model.config.SysResourceExample;

import java.util.List;

/**
 * Created by lihongli on 2018/9/1
 */
public interface ResourceService {

    List<SysResource> selectByExample(SysResourceExample example);

    List<SysResource> selectByExample(Page<SysResource> page, SysResourceExample example);

    Integer insert(SysResource record);

    SysResource resourceGetByPK(Long id);

    List<SysResource> parentResourceAll(SysResourceExample example);

    Integer update(SysResource record);

    Integer resourceDelete(Long id);

    Integer resourceDeleteBatch(List<Long> idList);

    Integer statusSingle(SysResource record, Long id);

    Integer statusBatch(SysResource record, List<Long> idList);
}
